#include<stdio.h>
void print(int arr[], int si)
{
	for (int i = 0; i <= si - 1; i++)
	{
		printf("%d ", arr[i]);
	}
	printf("\n");
}
int main()
{
	int arr1[10] = { 0,1,2,3,4,5,6,7,8,9 };
	int arr2[10] = { 10,11,12,13,14,15,16,17,18,19 };
	int left = 0;
	int si = sizeof(arr1) /sizeof(arr1[0]);
	/*int right = si - 1;*/
	print(arr1, si);
	print(arr2, si);
	/*while (left < right)
	{
		int tep = arr1[right];
		arr1[right] = arr2[right];
		arr2[right] = tep;
		int tem = arr1[left];
		arr1[left] = arr2[left];
		arr2[left] = tep;
		left++;
		right--;
	}*///这个也可以交换，但我不忘记了是怎么想的了
	for (int i = 0; i <= si - 1; i++)
	{
		int tem = arr1[i];
		arr1[i] = arr2[i];
		arr2[i] = tem;
	}
	print(arr1, si);
	print(arr2, si);
	return 0;
}